package com.foruo.learn.designmode.chain.servlet.filter;

import com.foruo.learn.designmode.chain.servlet.IFilterChain;
import com.foruo.learn.designmode.chain.servlet.IFilter;
import com.foruo.learn.designmode.chain.servlet.entity.MyRequest;
import com.foruo.learn.designmode.chain.servlet.entity.MyResponse;

/**
 * 第二个
 * @author GaoYuan
 * @date 2018/10/30 下午1:28
 */
public class SecondFilter implements IFilter {
    @Override
    public void init() {

    }

    @Override
    public void doFilter(MyRequest myRequest, MyResponse myResponse, IFilterChain chain) {
        System.out.println("\n>>>>>>> 执行了 SecondFilter.doFilter()");
        chain.doFilter(myRequest, myResponse);
    }

    @Override
    public void destroy() {

    }

}
